package com.itheima.service;

import com.itheima.entity.dto.employee.AddEmployeeDto;
import com.itheima.entity.dto.employee.EmployeeLoginDto;
import com.itheima.entity.dto.employee.EmployeeUpDto;
import com.itheima.entity.vo.employee.EmployeeIdVo;
import com.itheima.entity.vo.employee.EmployeeLoginVo;
import com.itheima.entity.vo.employee.EmployeePageVo;

/**
 * @author huangzelnag
 * @create 2022-05-09
 */
public interface EmployeeService {

    /**
     * 员工登陆
     * @param employeeLoginDto
     * @return
     */
    EmployeeLoginVo getEmployeeLogin(EmployeeLoginDto employeeLoginDto);

    /**
     * 退出登陆
     * @param token
     */
    void logout(String token);


    /**
     * 分页查询列表
     * @param name
     * @param page
     * @param pageSize
     * @return
     */
    EmployeePageVo getEmployeePage(String name,Integer page,Integer pageSize);

    /**
     * 添加员工信息
     * @param addEmployeeDto
     * @return
     */
    Boolean addEmployee(AddEmployeeDto addEmployeeDto);


    /**
     * 根据用户id获取用户信息
     * @param id
     * @return
     */
    EmployeeIdVo getEmployeeById(String id);


    /**
     * 修改用户信息
     * @param employeeUpDto
     * @return
     */
    boolean  updateEmployee(EmployeeUpDto employeeUpDto);





}
